const devBaseURL = "http://119.45.148.251:8888";
const proBaseURL = "http://119.45.148.251:8888";

export const IMGURL = 'http://fastdfs.cbda1984.com/'
export const customizeId = 1
export const BASE_URL = process.env.NODE_ENV === 'development' ? devBaseURL : proBaseURL;

export const TIMEOUT = 5000;
export function plusXing(str: string, frontLen: number, endLen: number) {
    var len = str.length - frontLen - endLen;
    var xing = '';
    for (var i = 0; i < 5; i++) {
        xing += '*';
    }
    return str.substr(0, frontLen) + xing + str.substr(str.length - endLen);
}